Optimal. Leaf size=156 \[ -\frac {B \text {ArcTan}\left (1-\sqrt {2} \sqrt {\cot (c+d x)}\right )}{\sqrt {2} d}+\frac {B \text {ArcTan}\left (1+\sqrt {2} \sqrt {\cot (c+d x)}\right )}{\sqrt {2} d}-\frac {2 B \cot ^{\frac {3}{2}}(c+d x)}{3 d}+\frac {B \log \left (1-\sqrt {2} \sqrt {\cot (c+d x)}+\cot (c+d x)\right )}{2 \sqrt {2} d}-\frac {B \log \left (1+\sqrt {2} \sqrt {\cot (c+d x)}+\cot (c+d x)\right )}{2 \sqrt {2} d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 156, normalized size of antiderivative = 1.00, number of steps
used = 13, number of rules used = 10, integrand size = 36, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.278, Rules used = {21, 3554,
3557, 335, 303, 1176, 631, 210, 1179, 642} \begin {gather*} -\frac {B \text {ArcTan}\left (1-\sqrt {2} \sqrt {\cot (c+d x)}\right )}{\sqrt {2} d}+\frac {B \text {ArcTan}\left (\sqrt {2} \sqrt {\cot (c+d x)}+1\right )}{\sqrt {2} d}-\frac {2 B \cot ^{\frac {3}{2}}(c+d x)}{3 d}+\frac {B \log \left (\cot (c+d x)-\sqrt {2} \sqrt {\cot (c+d x)}+1\right )}{2 \sqrt {2} d}-\frac {B \log \left (\cot (c+d x)+\sqrt {2} \sqrt {\cot (c+d x)}+1\right )}{2 \sqrt {2} d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 21
Rule 210
Rule 303
Rule 335
Rule 631
Rule 642
Rule 1176
Rule 1179
Rule 3554
Rule 3557
Rubi steps
\begin {align*} \int \frac {\cot ^{\frac {5}{2}}(c+d x) (a B+b B \tan (c+d x))}{a+b \tan (c+d x)} \, dx &=B \int \cot ^{\frac {5}{2}}(c+d x) \, dx\\ &=-\frac {2 B \cot ^{\frac {3}{2}}(c+d x)}{3 d}-B \int \sqrt {\cot (c+d x)} \, dx\\ &=-\frac {2 B \cot ^{\frac {3}{2}}(c+d x)}{3 d}+\frac {B \text {Subst}\left (\int \frac {\sqrt {x}}{1+x^2} \, dx,x,\cot (c+d x)\right )}{d}\\ &=-\frac {2 B \cot ^{\frac {3}{2}}(c+d x)}{3 d}+\frac {(2 B) \text {Subst}\left (\int \frac {x^2}{1+x^4} \, dx,x,\sqrt {\cot (c+d x)}\right )}{d}\\ &=-\frac {2 B \cot ^{\frac {3}{2}}(c+d x)}{3 d}-\frac {B \text {Subst}\left (\int \frac {1-x^2}{1+x^4} \, dx,x,\sqrt {\cot (c+d x)}\right )}{d}+\frac {B \text {Subst}\left (\int \frac {1+x^2}{1+x^4} \, dx,x,\sqrt {\cot (c+d x)}\right )}{d}\\ &=-\frac {2 B \cot ^{\frac {3}{2}}(c+d x)}{3 d}+\frac {B \text {Subst}\left (\int \frac {1}{1-\sqrt {2} x+x^2} \, dx,x,\sqrt {\cot (c+d x)}\right )}{2 d}+\frac {B \text {Subst}\left (\int \frac {1}{1+\sqrt {2} x+x^2} \, dx,x,\sqrt {\cot (c+d x)}\right )}{2 d}+\frac {B \text {Subst}\left (\int \frac {\sqrt {2}+2 x}{-1-\sqrt {2} x-x^2} \, dx,x,\sqrt {\cot (c+d x)}\right )}{2 \sqrt {2} d}+\frac {B \text {Subst}\left (\int \frac {\sqrt {2}-2 x}{-1+\sqrt {2} x-x^2} \, dx,x,\sqrt {\cot (c+d x)}\right )}{2 \sqrt {2} d}\\ &=-\frac {2 B \cot ^{\frac {3}{2}}(c+d x)}{3 d}+\frac {B \log \left (1-\sqrt {2} \sqrt {\cot (c+d x)}+\cot (c+d x)\right )}{2 \sqrt {2} d}-\frac {B \log \left (1+\sqrt {2} \sqrt {\cot (c+d x)}+\cot (c+d x)\right )}{2 \sqrt {2} d}+\frac {B \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\sqrt {2} \sqrt {\cot (c+d x)}\right )}{\sqrt {2} d}-\frac {B \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\sqrt {2} \sqrt {\cot (c+d x)}\right )}{\sqrt {2} d}\\ &=-\frac {B \tan ^{-1}\left (1-\sqrt {2} \sqrt {\cot (c+d x)}\right )}{\sqrt {2} d}+\frac {B \tan ^{-1}\left (1+\sqrt {2} \sqrt {\cot (c+d x)}\right )}{\sqrt {2} d}-\frac {2 B \cot ^{\frac {3}{2}}(c+d x)}{3 d}+\frac {B \log \left (1-\sqrt {2} \sqrt {\cot (c+d x)}+\cot (c+d x)\right )}{2 \sqrt {2} d}-\frac {B \log \left (1+\sqrt {2} \sqrt {\cot (c+d x)}+\cot (c+d x)\right )}{2 \sqrt {2} d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in
optimal.
time = 0.05, size = 38, normalized size = 0.24 \begin {gather*} \frac {2 B \cot ^{\frac {3}{2}}(c+d x) \left (-1+\, _2F_1\left (\frac {3}{4},1;\frac {7}{4};-\cot ^2(c+d x)\right )\right )}{3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 4 vs. order
3.
time = 28.29, size = 1275, normalized size = 8.17
method | result | size |
default | \(\text {Expression too large to display}\) | \(1275\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.54, size = 127, normalized size = 0.81 \begin {gather*} \frac {3 \, {\left (2 \, \sqrt {2} \arctan \left (\frac {1}{2} \, \sqrt {2} {\left (\sqrt {2} + \frac {2}{\sqrt {\tan \left (d x + c\right )}}\right )}\right ) + 2 \, \sqrt {2} \arctan \left (-\frac {1}{2} \, \sqrt {2} {\left (\sqrt {2} - \frac {2}{\sqrt {\tan \left (d x + c\right )}}\right )}\right ) - \sqrt {2} \log \left (\frac {\sqrt {2}}{\sqrt {\tan \left (d x + c\right )}} + \frac {1}{\tan \left (d x + c\right )} + 1\right ) + \sqrt {2} \log \left (-\frac {\sqrt {2}}{\sqrt {\tan \left (d x + c\right )}} + \frac {1}{\tan \left (d x + c\right )} + 1\right )\right )} B - \frac {8 \, B}{\tan \left (d x + c\right )^{\frac {3}{2}}}}{12 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} B \int \cot ^{\frac {5}{2}}{\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 9.99, size = 64, normalized size = 0.41 \begin {gather*} \frac {{\left (-1\right )}^{1/4}\,B\,\mathrm {atan}\left ({\left (-1\right )}^{1/4}\,\sqrt {\frac {1}{\mathrm {tan}\left (c+d\,x\right )}}\right )}{d}-\frac {2\,B\,{\left (\frac {1}{\mathrm {tan}\left (c+d\,x\right )}\right )}^{3/2}}{3\,d}-\frac {{\left (-1\right )}^{1/4}\,B\,\mathrm {atanh}\left ({\left (-1\right )}^{1/4}\,\sqrt {\frac {1}{\mathrm {tan}\left (c+d\,x\right )}}\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________